@include theme {
  .pl-mdc {
    padding-bottom: 40vh;

    .pl-mdc-card {
      width: 100%;
      display: inline-block;
      background-color: white;
      box-sizing: border-box;
      margin-bottom: 8px;
      padding: 0 20px 12px;
      box-shadow: 0 1px 1px #ccc;
      font-size: 14px;
    }
  }

  .doc-page-entire {
    .pl-mdc-card {
      box-shadow: none;
      border: none;
      border-radius: 0;
      margin: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
  }

  .pl-mdc-case {

    h2 {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .pl-mdc-case-operator {
        color: $colorPrimary;
        font-size: 12px;
        display: inline-block;

        & > span {
          transition: all 300ms linear;
          opacity: 0.15;
          color: #333;

          &:hover {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
          }
        }
      }
    }

    .pl-mdc-case-code {
      margin: 16px 0;
    }

    .pl-mdc-case-close-code-btn {
      display: inline-block;
      height: 28px;
      line-height: 28px;
      border-radius: 100px;
      padding: 0 12px;
      box-sizing: border-box;
      text-align: center;
      user-select: none;
      position: relative;
      cursor: pointer;
      color: $colorPrimary;
      font-size: 12px;

      &:active {
        background-color: #f6f6f6;
        top: 1px;
        left: 1px;
      }

      & > .pl-icon {
        margin-left: 6px;
        transition: transform 300ms linear;
      }

      &:last-child {
        .pl-icon {
          transform: rotate(-90deg);
        }
      }

    }

    .pl-mdc-bottom-desc {
      margin: 16px 0;
    }

    &.pl-mdc-case-show-code {
      .pl-mdc-case-close-code-btn {
        &:last-child {
          .pl-icon {
            transform: rotate(90deg);
          }
        }
      }
    }

    .pl-mdc-case-close-code-btn-wrapper {
      position: sticky;
      bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;

      .pl-mdc-case-close-code-btn {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        background-color: white;
        pointer-events: auto;
      }
    }

    &:hover {
      h2 {
        .pl-mdc-case-operator {
          & > span {
            opacity: 1;
            color: $colorPrimary;
          }
        }
      }
    }
  }

  .pl-mdc-case-wrapper {
    &.pl-mdc-case-space {
      display: flex;
      align-items: center;
      justify-content: flex-start;

      & > * + * {
        margin-left: 8px !important;
      }
    }

    &:not(.pl-mdc-case-space) {
      & > * + * {
        margin-top: 16px !important;
      }
    }
  }
}